package cn.edu.scau.cmi.yangjiamin.spring;

public class Student {

	private String id;
	private String name;
	private String gender;
    private Teacher tutor;
    
	
	public Student() {}
	
	

	public Student(String id, String name, String gender, Teacher tutor) {
		super();
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.tutor = tutor;
	}



	public Teacher getTutor() {
		return tutor;
	}



	public void setTutor(Teacher tutor) {
		this.tutor = tutor;
	}



	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	
	@Override
	public String toString() {
		return "Student { id=" + id + ", name=" + name + ", gender=" + gender + ",\n tutor=" + tutor + "}";
	}
}
